package team.first.movieapiv2.doc;

import dev.morphia.annotations.Entity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.bson.types.ObjectId;

import java.time.LocalDate;

/**
 * @Author: HAPPY
 * @Project_name: project
 * @Package_name: team.first.mongodb.doc
 * @Date: 2021/11/18 23:16
 * @Description：
 */
@Entity(useDiscriminator = false)
@ToString
@Accessors(chain = true)
@Getter
@Setter
@ApiModel(value = "电影演职人员")
public class InnerStaffDoc {
    @ApiModelProperty(value = "员工编号", example = "1291")
    private ObjectId objectId;

    @ApiModelProperty(value = "电影编号", example = "1291543")
    private Integer id;

    @ApiModelProperty(value = "中文名", example = "杨欢乐")
    private String chineseName;

    @ApiModelProperty(value = "英文名", example = "Happy")
    private String englishName;

    @ApiModelProperty(value = "性别", example = "男")
    private String gender;

    @ApiModelProperty(value = "地区", example = "中国陕西")
    private String region;

    @ApiModelProperty(value = "出生日期", example = "2001-09-06")
    private LocalDate birthday;

    @ApiModelProperty(value = "电影简介", example = "1940年代的上海，自小受尽欺辱的街头混混阿星（周星驰）为了能出人头地...")
    private String summary;

    @ApiModelProperty(value = "用户头像地址", example = "https://img1.doubanio.com/fcmedium.png")
    private String avatarUrl;

    @ApiModelProperty(value = "用户头像", example = "1413354.jpg")
    private String avatar;

    @ApiModelProperty(value = "员工类型", example = "导演")
    private String actAs;

    @ApiModelProperty(value = "角色类型编号", example = "1291543")
    private Integer roleTypeId;

}
